
<ion-header>
  <ion-navbar color="primary">
    <ion-title style="text-align: center">登录</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>

  <ion-list>
    <ion-item>
      <ion-input type="text" placeholder="账号" #username></ion-input>
      <ion-icon name="person" item-end></ion-icon>
    </ion-item>
    <ion-item>
      <ion-input type="password" placeholder="密码" #password></ion-input>
      <ion-icon name="key" item-end></ion-icon>
    </ion-item>
    <ion-item no-lines>
      <ion-label>记住密码</ion-label>
      <ion-toggle checked="false" #remember></ion-toggle>
    </ion-item>
  </ion-list>

  <button ion-button block color="danger" (click)="login(username,password,remember)">登录</button>
  <ion-list>
    <ion-item>
      <button ion-button clear item-start>忘记密码</button>
      <button ion-button clear item-end (click)="register(username,password)">注 册</button>
    </ion-item>
  </ion-list>
  

</ion-content>
